#include <Arduino.h>
#include <TFT_eSPI.h>
#include <SPI.h>
#include "stdlib.h"

#include "key.h"
#include "debug.hpp"
#include "memu.h"

#define CONFIG_DISABLE_WARNINGS

TFT_eSPI tft = TFT_eSPI();




void setup()
{
    Serial.begin(1152000);
    key_init();

    pinMode(11,ANALOG);
    analogWrite(11,255);
    // ledcChangeFrequency(analogGetChannel(11), 5000, 8);



    tft.begin();
    tft.setRotation(1);
    // tft.setTextSize(2);
    tft.setTextFont(4);

    tft.fillScreen(TFT_BLACK);

    // tft.drawString("heelo world!",0,0);
    index0_fun();
}

void loop()
{

    memu_run();
    delay(1);
    
}

